package caiziyou.com.designpattern.composite;

public class Client {

	public static void main(String[] args) {
		University university = new University("清华大学", " 中国顶级大学 ");
		College com = new College("计算机学院", "计算机学院");
		College info = new College("信息工程学院", "信息工程学院");
		com.add(new Department("信息技术","信息技术"));
		info.add(new Department("电脑技术","电脑技术"));
		university.add(com);
		university.add(info);
		
		university.print();
	}
}
